#ifndef APPCONTROLLER_H
#define APPCONTROLLER_H

#include "loginorsignupwidget.h"
#include "main_window.h"
#include "csplashscreen.h"

class AppController : public QObject
{
    Q_OBJECT
public:
    explicit AppController(QObject *parent = nullptr);
    ~AppController();
    void start(); // 启动应用程序流程
signals:

private slots:
    void handleLoginSuccess(); // 登录成功后的处理
    void handleLogout(); // 退出登录后的处理
private:
    LoginOrSignUpWidget *m_loginWidget = nullptr;
    MainWindow *m_mainWindow = nullptr;
    bool m_isLogin{false};
    CSplashScreen *m_splash = nullptr;
};

#endif // APPCONTROLLER_H
